// 表格头部信息
export default function ColumnsList() {
  // 更换托盘列表
  const columns: any[] = [
    {
      title: '托盘号',
      dataIndex: 'toolCode',
    },
    {
      title: '托盘状态',
      dataIndex: 'palletStatus',
    },
    {
      title: '是否参与分拣',
      dataIndex: 'isSortName',
    },
    {
      title: '任务状态',
      dataIndex: 'taskStatus',
    },

    {
      title: '工作包',
      dataIndex: 'packageCode',
      sortable: {
        sortDirections: ['ascend', 'descend'],
      },
    },
    {
      title: 'AO号',
      dataIndex: 'aoCode',
      sortable: {
        sortDirections: ['ascend', 'descend'],
      },
    },
  ];
  // 补叫箱子列表
  const columnsTwo: any[] = [
    {
      title: '箱子号',
      dataIndex: 'workbinCode',
      width: 180,
    },
    {
      title: '限用信息',
      dataIndex: 'useLimitInfo',
      width: 180,
    },
    {
      title: '图号',
      dataIndex: 'itemCode',
      width: 180,
    },
    {
      title: '质量编号',
      dataIndex: 'qualityCode',
      width: 180,
    },
    {
      title: '数量',
      dataIndex: 'itemQty',
      width: 80,
    },
    {
      title: '添加数量',
      dataIndex: 'addQty',
      fixed: 'right',
      width: 80,
    },
  ];

  // 已配套物料
  const materialOverColumns: any[] = [
    {
      title: '已配套物料',
      align: 'left',
      headerCellStyle: { fontSize: 'large', fontWeight: 400 },
      children: [
        {
          title: '图号',
          dataIndex: 'itemCode',
          width: 180,
        },
        {
          title: '质量编号',
          dataIndex: 'qualityCode',
          width: 140,
        },
        {
          title: '配套数量',
          dataIndex: 'matchQty',
          width: 120,
        },
      ],
    },
  ];
  // 可配套物料
  const materialColumns: any[] = [
    {
      title: '可配套物料',
      align: 'left',
      headerCellStyle: { fontSize: 'large', fontWeight: 400 },
      children: [
        {
          title: '图号',
          dataIndex: 'itemCode',
          width: 180,
        },
        {
          title: '质量编号',
          dataIndex: 'qualityCode',
          width: 100,
        },
        {
          title: '限用信息',
          dataIndex: 'useLimitInfo',
          width: 100,
        },
        {
          title: '库存数量',
          dataIndex: 'itemQty',
          width: 180,
        },
        {
          title: '替换数量',
          dataIndex: 'replaceQty',
          width: 120,
          fixed: 'right',
        },
      ],
    },
  ];
  // 规则表头
  const ruleColumns: any[] = [
    {
      title: '工作包规则',
      align: 'left',
      headerCellStyle: { fontSize: 'large', fontWeight: 400 },
      children: [
        {
          title: 'AO编号',
          dataIndex: 'aoCode',
          width: 180,
        },
        {
          title: '工作包编号',
          dataIndex: 'packageCode',
          width: 180,
        },
        {
          title: '托盘',
          dataIndex: 'palletCode',
          width: 180,
        },
      ],
    },
  ];
  return {
    columns,
    columnsTwo,
    materialOverColumns,
    materialColumns,
    ruleColumns,
  };
}
